/*
 * @Author: your name
 * @Date: 2021-07-08 11:47:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \jinfeng_up\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import FilterTrans from './utils/paramsFiler.js'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'multi-items-input'
import 'multi-items-input/dist/multi-items-input.css'
import tinymce from 'tinymce'
import VueTinymce from '@packy-tang/vue-tinymce'
import dayjs from 'dayjs'
import VueDirectiveImagePreviewer from 'vue-directive-image-previewer'
import 'vue-directive-image-previewer/dist/assets/style.css'

import 'tinymce/themes/silver/theme'
import 'tinymce/themes/silver'
import 'tinymce/icons/default'
import 'tinymce/plugins/link'
import 'tinymce/plugins/code'
import 'tinymce/plugins/table'
import 'tinymce/plugins/lists'
import 'tinymce/plugins/contextmenu'
import 'tinymce/plugins/wordcount'
import 'tinymce/plugins/colorpicker'
import 'tinymce/plugins/textcolor'
import 'tinymce/plugins/media'
import 'tinymce/plugins/fullscreen'
import 'tinymce/plugins/quickbars'
import 'tinymce/skins/ui/oxide/skin.css'
import 'tinymce/skins/ui/oxide/content.min.css'
import 'tinymce/icons/default/icons.js'
import 'tinymce/plugins/image'

import scroll from 'vue-seamless-scroll'
import './icons' // icon
import './permission' // permission control

import hasPermission from './utils/hasPermission'
Vue.use(hasPermission)
Vue.use(VueDirectiveImagePreviewer)

Vue.prototype.dayjs = dayjs
Vue.prototype.$tinymce = tinymce
Vue.use(VueTinymce)
Vue.use(scroll)
Vue.use(Element, {
    size: 'small'
})

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
Vue.use(VueQuillEditor)
Vue.config.productionTip = false
Vue.prototype.$filterTrans = FilterTrans
// main.js
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
